Page({
    data: {
        activeIndex: 0,
        // myIndex:0
    },
    //图片切换，获取到图片下标
    handleChange(e) {
        let activeIndex = e.detail.current;
        this.setData({
            activeIndex
        })
    },
    //点击dot，图片进行切换
    dotClick(e){
        // console.log(e)
        let index=e.currentTarget.id;
        this.setData({
            activeIndex:index
        })
    }
})